package com.dgut.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * 用户信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("userinfo")
public class UserInfo {
    //信息id,让主键自增
    @TableId(type= IdType.AUTO)
    private Integer infoId;
    @TableField(exist = false)
    private String username;  //账号名，即学号
    //账号id
    private Integer accountId;
    //名字
    private String name;
    //证件类型
    private String certificateType;
    //证件号码
    private String idNumber;
    //身份类别
    private String identityCategory;
    //所在校区
    private String schoolLocation;
    //籍贯
    private String nativePlace;
    //户籍
    private String householdRegister;
    //家庭住址
    private String address;
    //电话号码
    private String phoneNumber;
    //紧急联系人
    private String contacts;
    //联系人号码
    private String contactNumber;
    //性别
    private String gender;
    //学院
    private String department;
    //班级
    private String classname;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    //是否删除
    @TableLogic
    private Integer deleted=0;
}
